package com.ruoyi.labour.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.labour.domain.vo.PageVo;
import com.ruoyi.labour.service.FeedbackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/feedback")
@Api(tags = "意见反馈")
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    /**
     * 查询意见反馈
     * @param pageVo
     * @return
     */
    @ApiOperation("查询意见反馈")
    @PostMapping("selectFeedback")
    public R selectFeedback(@RequestBody PageVo pageVo){
        return feedbackService.selectFeedback(pageVo);
    }
}
